package com.cskaoyan.service;

import com.cskaoyan.bean.MarketGoodsExample;
import com.cskaoyan.mapper.MarketGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Jackey
 * @Date: 2023/4/20 17:15
 **/
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    MarketGoodsMapper marketGoodsMapper;

    @Override
    public Integer countGoods() {
        long goodsNum = marketGoodsMapper.countByExample(new MarketGoodsExample());
        return (int) goodsNum;
    }
}
